<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>使用第三方动画实现动画</title>
    <script src="../../lib/vue.js"></script>
    <link rel="stylesheet" href="../../lib/animate.css">
</head>
<body>
    <div id="app">
        <input type="button" @click="flag=!flag" value="切换" />
        <transition enter-active-class="animated bounceIn"
                    leave-active-class="animated bounceOut"
                    :duration="{enter:200,leave:400}">
            <p v-if="flag"> {{ msg }}</p>
        </transition>
    </div>

    <script>
        var vue = new Vue({
            el : '#app',
            data:{
                msg : "hello vue",
                flag : false
            }
        });
    </script>
</body>
</html>